package com.xjlsoft.weather.mapper;

import com.xjlsoft.weather.entity.WeatherTask;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 定时任务表 Mapper 接口
 * </p>
 *
 * @author zhangbanglong
 * @since 2020-07-18
 */
@Mapper
public interface WeatherTaskMapper extends BaseMapper<WeatherTask> {
	
	
	/**
     * 根据key 获取 任务信息
     */
	public WeatherTask getByKey(@Param("taskKey") String taskKey);

	/**
     * 获取程序初始化需要自启的任务信息
     */
	public List<WeatherTask> getAllNeedStartTask();

}
